Enriches the lambda_runtime
crate with http
types targeting ALB and API Gateway proxy events.
Though ALB and API Gateway proxy events are separate Lambda triggers, they both share similar shapes that contextually map to an http request handler. From a application perspective the differences shouldn't matter. This crate abstracts over both using standard http types allowing you to focus more on your application while giving you to the flexibility to transparently use whichever http trigger suits your application's needs best.
Examples
use ;
use ;
You can also provide a closure directly to the lambda!
macro
use ;